package day04;

import java.util.Scanner;

public class ScoreLevel {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩");
        int score = sc.nextInt();

        if (score>100||score<0){
            System.out.println("成绩不合法，请重新输入");
        }else if (score>=90){
            System.out.println("成绩等级为A");
        }else if (score>=80){
            System.out.println("成绩等级为B");
        }else if (score>=60){
            System.out.println("成绩等级为C");
        }else{
            System.out.println("成绩等级为D");
        }
    }
}
